/*
 * @Author: Automator
 * @Date: 2018-05-22 18:19:08
 * @description: 
*/

 const  api = {

     /*
     * 方法描述:竞品运营标记为运营 ,请求方式:POST ,参数:companyId number 工商 Id ,返回值:JsonResult,是否可用:no
     * @param companyId  companyId  Required:[true]  Type:[integer]  Location:[path]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'operativeCompetitors': {url: '/cms/v2/api/com/competitors/operative/{companyId}', method: 'post'},

     /*
     * 方法描述:根据企业id获取工商信息 ,请求方式:GET ,参数:companyId number 工商 id ,返回值:ComInfoVo,是否可用:no
     * @param companyId  companyId  Required:[true]  Type:[integer]  Location:[path]
     */
    'getComInfoById': {url: '/cms/v2/api/com/com/info/{companyId}', method: 'get'},

     /*
     * 方法描述:根据企业id和运营状态 获取当前企业所有竞品信息 ,请求方式:GET ,参数:ComPBJSearchDto ,返回值:PageResult<ComCompetitorVO>,是否可用:no
     * @param pageParam.pageIndex    Required:[false]  Type:[integer]  Location:[query]
     * @param pageParam.pageSize    Required:[false]  Type:[integer]  Location:[query]
     * @param companyId  工商 id  Required:[false]  Type:[integer]  Location:[query]
     * @param operate   运营标记  Required:[false]  Type:[integer]  Location:[query]
     */
    'getComCompetitorPage': {url: '/cms/v2/api/com/competitor/page', method: 'get'},

     /*
     * 方法描述:删除当前竞品信息数据 ,请求方式: DELETE ,参数:该条记录id ,返回值:JsonResult,是否可用:no
     * @param id  id  Required:[true]  Type:[integer]  Location:[path]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'deleteComCompetitorById': {url: '/cms/v2/api/com/{id}/competitor', method: 'delete'},

     /*
     * 方法描述:添加竞品信息 ,请求方式:POST ,参数:comCompetitorDto ,返回值:JsonResult,是否可用:ok
     * @param comCompetitorDto  comCompetitorDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'saveComCompetitor': {url: '/cms/v2/api/com/competitor', method: 'post'},

     /*
     * 方法描述:编辑竞品信息 ,请求方式: PUT ,参数:comCompetitorDto ,返回值:JsonResult,是否可用:ok
     * @param comCompetitorDto  comCompetitorDto  Required:[true]  Type:[]  Location:[body]
     * @param tokenUserId  tokenUserId  Required:[false]  Type:[string]  Location:[query]
     */
    'updateComCompetitor': {url: '/cms/v2/api/com/competitor', method: 'put'},

};

 export default api;
